package com.wordsay.entity;

import java.util.ArrayList;
import java.util.List;

public class Dialog {

	protected String name;
	protected List<Talk> talks;
	protected People self; 
	protected AnalystResult analystResult;
	
	public Dialog(){
		talks = new ArrayList<Talk>();
	}
	
	
	public boolean isEmpty(){
		
		return talks.size() == 0;
	}
	
	public Talk getLastTalk(){
		
		if(talks == null || talks.size() == 0){
			return null;
		}
		return talks.get(talks.size()-1);
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Talk> getTalks() {
		return talks;
	}

	public void setTalks(List<Talk> talks) {
		this.talks = talks;
	}

	public People getSelf() {
		return self;
	}

	public void setSelf(People self) {
		this.self = self;
	}


	public AnalystResult getAnalystResult() {
		return analystResult;
	}


	public void setAnalystResult(AnalystResult analystResult) {
		this.analystResult = analystResult;
	}
}
